﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Topic.aspx.cs" Inherits="DDDProjectSample.WebUI.Topic"
    MasterPageFile="~/Page.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeaderMenuContentPlaceHolder" runat="server">
    <a href="<%= ResolveUrl("~/Default.aspx") %>">Home</a> <a href="<%= ResolveUrl(String.Concat("~/Forum.aspx?Id=", Request.QueryString["ForumId"])) %>">
        Topics</a> <a href="<%= ResolveUrl(String.Format("~/NewMessage.aspx?TopicId={0}&ForumId={1}", Request.QueryString["Id"], Request.QueryString["ForumId"])) %>">
            New message</a>
</asp:Content>
<asp:Content ContentPlaceHolderID="LeftContentPlaceHolder" runat="server">
    <asp:Repeater ID="RepeaterMessages" runat="server">
        <ItemTemplate>
            <%--<h2>
                <a href="<%# ResolveUrl(String.Format("~/Topic.aspx?Id={0}&ForumId={1}", Eval("Id"), Request.QueryString["Id"])) %>">
                    <%# HttpUtility.HtmlEncode(Eval("Title").ToString()) %></a></h2>--%>
            <p>
                <%# HttpUtility.HtmlEncode(Eval("Text").ToString()) %></p>
            <p class="date">
                <span>Posted by
                    <%# Eval("Author.Login") %>,
                    <%# Eval("CreationDate") %></span>
                <%--<img src="images/more.gif" alt="" />
                <a href="<%# ResolveUrl(String.Format("~/Topic.aspx?Id={0}&ForumId={1}", Eval("Id"), Request.QueryString["Id"])) %>">
                    Access</a>--%></p>
        </ItemTemplate>
    </asp:Repeater>
</asp:Content>
